
#include<bits/stdc++.h>
using namespace std;


// 编译期实现阶乘
template <int num>
class Factorial
{
public:
    static const int value = num * Factorial<num - 1>::value;
};

template <>
class Factorial<0>
{
public:
    static const int value = 1;
};

int main()
{
    int tmp;
    cin >> tmp;
    // cout << Factorial<tmp>::value << endl;
    cout << Factorial<10>::value << endl;
}